package com.atguigu.gulimallcart.service;

import com.atguigu.gulimallcart.vo.Cart;
import com.atguigu.gulimallcart.vo.CartItem;

import java.util.concurrent.ExecutionException;

public interface CartService {

    CartItem addCartItem(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getItemBySkuId(Long skuId);

    Cart getCarts() throws ExecutionException, InterruptedException;

    void changeStatus(Long skuId, Integer checked);

    void changeNum(Long skuId, Integer num);

    void delCartItem(Long skuId);
}
